﻿namespace CoreEx.Common.Extensions
{
    /// <summary>
    /// Represents an irregular noun
    /// </summary>
    public class PluralRule
    {        
        /// <summary>
        /// Gets or sets the singular form of the noun.
        /// </summary>
        public string SingularForm { get; set; }
     
        /// <summary>
        /// Gets or sets the plural form of the noun.
        /// </summary>
        public string PluralForm { get; set; }

        /// <summary>
        /// Returns a <see cref="System.String"/> that represents this instance.
        /// </summary>
        /// <returns>
        /// A <see cref="System.String"/> that represents this instance.
        /// </returns>
        public override string ToString()
        {
            if ((PluralForm != null) && (SingularForm != null))
            {
                return string.Format("{0} <-> {1}", SingularForm, PluralForm);
            }
            return base.ToString();
        }
    }
}
